/**
 *@mainpage Homework 4
 *@author Kassandra Coan
 *@date February 16th, 2011
 *
 *
 *@brief tic-tac-toe: a classic game
 *
 */

#include <stdio.h>
#include <stdlib.h>
//#include "tictactoe.h"
//#include "logic.c"
//#include "ui.c"

int main(){
	int numPlayers = selectNumPlayers();
	int gameOver = 0;
	
	if (numPlayers < 0) {
		notEnoughPlayers();
	}
	
	while (numPlayers == 0) {
		wantToWatchComputers = inquireWatchComputers();
			if (wantToWatchComputers == 1) {
				watchComputers();
			}else {
				numPlayers = selectNumPlayers();
			}

	}
	
	if (numPlayers == 1){
		enterPlayerName();
		askToGoFirst();		
		playGame();
		endGameMessage();
		inquireContinuation();
		if (inquireNumPlayerSwitch() == 1) {
				<#statements#>
		}else{
			inquirePlayerSwitch();
			}
	}
	
	if (numPlayers == 2) {
		enterPlayerName();
		enterPlayerName();
		playGame();
		endGameMessage();
		inquireContinuation();
		inquirePlayerSwitch();
	}
	
	if (numPlayers > 2) {
		tooManyPlayers();
	}
	
}